/*    */ package com.zimbra.cs.dav.resource;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.L10nUtil;
/*    */ import com.zimbra.common.util.L10nUtil.MsgKey;
/*    */ import com.zimbra.cs.account.Account;
/*    */ import com.zimbra.cs.dav.DavContext;
/*    */ import com.zimbra.cs.dav.DavElements;
/*    */ import com.zimbra.cs.dav.DavException;
/*    */ import com.zimbra.cs.dav.property.CalDavProperty;
/*    */ import com.zimbra.cs.dav.property.ResourceProperty;
/*    */ import com.zimbra.cs.mailbox.Mountpoint;
/*    */ import java.util.Locale;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class RemoteCalendarCollection
/*    */   extends RemoteCollection
/*    */ {
/*    */   public RemoteCalendarCollection(DavContext ctxt, Mountpoint mp)
/*    */     throws DavException, ServiceException
/*    */   {
/* 36 */     super(ctxt, mp);
/* 37 */     Account acct = mp.getAccount();
/*    */     
/* 39 */     addResourceType(DavElements.E_CALENDAR);
/*    */     
/* 41 */     Locale lc = acct.getLocale();
/* 42 */     String description = L10nUtil.getMessage(L10nUtil.MsgKey.caldavCalendarDescription, lc, new Object[] { acct.getAttr("displayName"), mp.getName() });
/* 43 */     ResourceProperty desc = new ResourceProperty(DavElements.E_CALENDAR_DESCRIPTION);
/* 44 */     desc.setMessageLocale(lc);
/* 45 */     desc.setStringValue(description);
/* 46 */     desc.setVisible(false);
/* 47 */     addProperty(desc);
/* 48 */     addProperty(CalDavProperty.getSupportedCalendarComponentSet(mp.getDefaultView()));
/* 49 */     addProperty(CalDavProperty.getSupportedCalendarData());
/* 50 */     addProperty(CalDavProperty.getSupportedCollationSet());
/*    */     
/* 52 */     addProperty(getIcalColorProperty());
/* 53 */     setProperty(DavElements.E_ALTERNATE_URI_SET, null, true);
/* 54 */     setProperty(DavElements.E_GROUP_MEMBER_SET, null, true);
/* 55 */     setProperty(DavElements.E_GROUP_MEMBERSHIP, null, true);
/*    */   }
/*    */   
/*    */   public short getRights() {
/* 59 */     return this.mRights;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/dav/resource/RemoteCalendarCollection.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */